package com.example.common.enums;

/**
 * @author chenjf
 * @Date 2022/9/15
 * @Description 前缀类
 */
public enum CommonMessage {
    REDIS_TOKEN("缓存登录token","redis-token:"),
    USER_TOKEN_COUNT("用户登录id+token","user-login-token:")


    ;


    //名称
    final String code;
    //统一前缀
    final String value;

    CommonMessage(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getValue() {
        return value;
    }
}
